﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewOpinionList.aspx.cs" Inherits="Honestysoft.Workflow.Client.WebUI.Workflow.WFProcess.ViewOpinionList" %>
<%@ Register Src="../Control/WFTitle.ascx" TagName="WFTitle" TagPrefix="uc1" %>
<%@ Import Namespace="Honestysoft.Workflow.Model" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>流程查看</title>
    <base target="_self" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache"/>
    <meta http-equiv="Expires" content="0"/>
    <link href="../Styles/control.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body
        {
            font-size:12px;
        }
        h2
        {
             font-size:12px;text-decoration:none;
        }
        a
        {
            font-size:12px;text-decoration:none;
        }
        a:hover
        {
            font-size:12px;text-decoration:none;
        }
    .formitem{border:1px solid #A8CFEB;border-top:none;margin-bottom:10px;}
    .formitem caption{border:1px solid #A8CFEB;border-bottom:none; background-color:#DFEAFB;text-align:left; font-weight:bold;color:#1C568A;height:18px;padding-left:5px;padding-top:5px;}
    .formitem th{ background-color:#F1F6FF;height:22px;padding-left:5px;width:140px;}
    .formitem td{ padding-left:5px;background-color:#FAFCFF;width:35%;}
    .formitem_pagestyle{}
    .formitem_pagestyle th{}
    .formitem_pagestyle td{text-align:right;padding-right:15px;}
    </style>
    <script language="javascript" type="text/javascript" src="../Scripts/jquery-1.4.1.js"></script>
    <script language="javascript" type="text/javascript">
        function openOrClose(evenSource, destSource) {
            if ($(destSource).css("display") == "block") {
                $(evenSource).attr("src", "../Images/ico_have2.gif");
                $(destSource).css("display", "none");
            }
            else {
                $(evenSource).attr("src", "../Images/ico_nohave2.gif");
                $(destSource).css("display", "block");
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div align="center" style="vertical-align:top">
        <table width="98%">
            <tr height="40px">
                <td style="width: 100%">
                    <uc1:WFTitle ID="WFTitle1" runat="server" />                    
                </td>
            </tr>
            <tr height="360px" valign="top" align="left">
                <td style="width: 100%">
                        <asp:Repeater ID="Repeater1" runat="server" OnItemCreated="Repeater1_ItemCreated"
                            OnItemDataBound="Repeater1_ItemDataBound" >
                            <ItemTemplate>
                                <h2>
                                    <img alt='' id="img_<%# DataBinder.Eval(Container.DataItem,"SignSerial") %>" src="../Images/ico_nohave2.gif" onclick="openOrClose(this,document.getElementById('table_<%# DataBinder.Eval(Container.DataItem,"SignSerial") %>'));">
                                    <a href="#" onclick="openOrClose(document.getElementById('img_<%# DataBinder.Eval(Container.DataItem,"SignSerial") %>'),document.getElementById('table_<%# DataBinder.Eval(Container.DataItem,"SignSerial") %>'));" >
                                    <asp:Label ID="lblActTemplateName"  runat="server"></asp:Label></a>
                                </h2>
                                <table id="table_<%# DataBinder.Eval(Container.DataItem,"SignSerial") %>" width="100%" cellpadding="0" cellspacing="1" border="0" style="display: block;" class="tEdit">
                                    <tr>
                                        <td>处理人</td><td><asp:Label ID="lblEmployee"  runat="server"></asp:Label></td>
                                        <td>处理时间</td><td><%# !((WFOpinion)Container.DataItem).TranTime.HasValue ? "" : string.Format("{0:yyyy-MM-dd}",DataBinder.Eval(Container.DataItem,"TranTime")) %></td>
                                        <td><asp:Label ID="lblResultText"  runat="server"></asp:Label></td><td><asp:Label ID="lblResult"  runat="server"></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td>处理意见</td>
                                        <td colspan="5"><%# DataBinder.Eval(Container.DataItem,"Opinion") %></td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:Repeater>
                </td>
            </tr>
            <tr>
                <td align="left">
                    &nbsp;&nbsp;<asp:Label Text="" ID="lblInfo" ForeColor="red" Font-Bold="true" runat="server"></asp:Label>
                </td>
            </tr>
            <tr height="25px">                                
                <td style="width: 100%" align="right">                    
                    <asp:Button ID="btnCancel" runat="server" Text="取  消"  class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" OnClientClick="window.close();" />&nbsp;&nbsp;&nbsp;&nbsp;                 
                </td>
            </tr>
        </table>
    </div>

    </form>
</body>
</html>
